<? foreach ($homeItems as $item): ?>
<div class="home-item">
    <h1>
        <? if (empty($item['HomeItem']['link'])): ?>
            <?= $item['HomeItem']['title'] ?>
        <? else: ?>
            <?= $this->Html->link($item['HomeItem']['title'], $item['HomeItem']['link']) ?>
        <? endif ?>
    </h1>
    <? if ($item['HomeItem']['image']): ?>
        <?= $this->Html->image('home_items/'.$item['HomeItem']['image'].'?w=150', array(
            'url' => empty($item['HomeItem']['link']) ? false : $item['HomeItem']['link']
        )) ?>
    <? endif ?>
    <?= $item['HomeItem']['blurb'] ?>
</div>
<? endforeach ?>
